﻿namespace Sai.Core.Rules
{
	using Sai.Core.Introspection;

	public class CheckTypesRemoved : IAssemblyRule
	{
        public void Validate(IntrospectedAssembly first, IntrospectedAssembly second, IAssemblyDifference assemblyDifference)
		{
			var removedTypes = first.TypeDifferencesFrom(second);

			foreach (var removedType in removedTypes)
			{
				assemblyDifference.Removed(removedType);
			}
		}
	}
}
